# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=elettra
pkgver=1.0
pkgrel=5
pkgdesc='Encryption utility by Julia Identity.'
groups=('blackarch' 'blackarch-misc')
arch=('x86_64' 'aarch64')
license=('custom')
url='http://www.winstonsmith.info/julia/elettra/'
depends=('glibc' 'libmcrypt' 'mhash' 'zlib')
makedepends=('cmake')
source=("http://www.winstonsmith.info/julia/$pkgname/$pkgname-src.tar.gz")
sha512sums=('341a83436d9c163391eabbc06600b29e8ee837bb805f2f9ea922ffa8d8dcb9ec53e50ae475e13e2810ac69419b86072cd7e6c44d13c80e43ee67071e6864d5b3')

build() {
  cd "$pkgname/src"

  mkdir -p build

  cd build

  cmake ..

  make
}

package() {
  cd $pkgname

  install -Dm 755 "src/build/$pkgname" "$pkgdir/usr/bin/$pkgname"
  install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/README"
}

